package com.example.gbuffer.Utils;

/**
 * @brief 定义在OpenGL视口坐标系下的矩形
 */
public class GLViewportRect {
    private int m_x, m_y, m_width, m_height;

    /**
     * @brief 构造一个矩形
     * @param x 右下角x坐标
     * @param y 右下角y坐标
     * @param width 矩形宽度
     * @param height 矩形高度
     */
    public GLViewportRect(int x, int y, int width, int height){
        m_x = x;
        m_y = y;
        m_width = width;
        m_height = height;
    }

    public int x(){
        return m_x;
    }

    public int y(){
        return m_y;
    }

    public int width(){
        return m_width;
    }

    public int height(){
        return m_height;
    }
}
